
function CheckMaCB(str) {
    if (str.length === 0) {
        document.getElementById("txtHintMaCB").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaCB").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_MaCB_ChuyenBay.jsp?q=" + str, true);
        xmlhttp.send();
    }
}


function CheckMaKH(str) {
    if (str.length === 0) {
        document.getElementById("txtHint").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaKH").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_MaKH_KhachHang.jsp?q=" + str, true);
        xmlhttp.send();
    }
}


function CheckTaiKhoanKH(str) {
    if (str.length === 0) {
        document.getElementById("txtHint").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintTaiKhoanKH").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_TaiKhoan_KhachHang.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function CheckMaNV(str) {
    if (str.length === 0) {
        document.getElementById("txtHintMaNV").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaNV").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_MaNV_NhanVien.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function CheckTaiKhoanNV(str) {
    if (str.length === 0) {
        document.getElementById("txtHintTaiKhoanNV").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintTaiKhoanNV").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_TaiKhoan_NhanVien.jsp?q=" + str, true);
        xmlhttp.send();
    }
}

function CheckMaVe(str) {
    if (str.length === 0) {
        document.getElementById("txtHintMaVe").innerHTML = "";
        return;
    } else {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
                document.getElementById("txtHintMaVe").innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET", "Checklive_MaVe_Ve.jsp?q=" + str, true);
        xmlhttp.send();
    }
}